<%-- 
--%>
<?xml version = "1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<%@ page language = "java" import = "vinnichenko.lab3.*, java.util.*" session = "true" %>
<%@ taglib uri = "WEB-INF/taglib.tld" prefix = "vinnichenko" %>

<html xmlns = "http://www.w3.org/1999/xhtml">

<head>
   <title>Employees List</title>

   <link rel = "stylesheet" href = "styles.css" 
      type = "text/css" />
</head>

<body>
   <p class = "bigFont">Employees</p>

   <p class = "bold">Click a link to view person information</p>

   <p>
      
      <table>
         <thead>
            <th style = "width: 100px">empno</th>
            <th style = "width: 100px">mgr</th>
            <th style = "width: 100px">deptno</th>
            <th style = "width: 100px">ename</th>
            <th style = "width: 100px">job</th>
            <th style = "width: 100px">sal</th>
            <th style = "width: 100px">comm</th>
            <th style = "width: 100px">hiredate</th>
         </thead>

         <%-- emplist custom tag --%>
         <vinnichenko:emplist>
            <tr>
               <td><%= empno %></td>
               <td><a href = "displayPersonInfo?empno=<%= mgr %>"><%= mgrname %></a></td>
               <td><%= deptname %></td>
               <td><a href = "displayPersonInfo?empno=<%= empno %>"><%= ename %></a></td>
               <td><%= job %></td>
               <td><%= sal %></td>
               <td><%= comm %></td>
               <td><%= hiredate %></td>
            </tr>
         </vinnichenko:emplist>
      </table>

   </p>
    <form method = "get">
    <p>
        <a href = "addNewPersonServlet">Add new person to company</a>
    </p>
    </form>
    <p>
        <a href = "index.html">Go to main page</a>
        <a href = "Hierarchy.jsp">View hierarchy list</a>
    </p>
</body> 

</html>
